<!--
 * @Author: Leo.wang wanglizhigs@163.com
 * @Date: 2024-01-08 09:14:27
 * @LastEditors: Leo.wang wanglizhigs@163.com
 * @LastEditTime: 2024-01-08 09:37:16
 * @FilePath: /tuberculosis_screening_display_system/src/views/city.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <Header></Header>
  <div class="content">
    <swiper class="swiper full" :space-between="50" :loop="true">
      <swiper-slide><Home></Home></swiper-slide>
      <swiper-slide><Analysis></Analysis></swiper-slide>
      <swiper-slide><Statistics></Statistics></swiper-slide>
    </swiper>
  </div>
</template>

<script lang="ts">
import { defineComponent, provide } from 'vue';
import Header from '@/components/Header/index.ts';
import Home from './Home.vue';
import Analysis from './Analysis.vue';
import Statistics from './Statistics.vue';
import { Swiper, SwiperSlide } from 'swiper/vue';
import 'swiper/css';
import { useRoute  } from 'vue-router';


export default defineComponent({
  components: {
    Header,
    Swiper,
    SwiperSlide,
    Home,
    Analysis,
    Statistics,
  },
  setup() {
    const route = useRoute();
    const { code } = route.params
    provide('code', code)
    return {};
  }
});
</script>

<style lang="scss" scoped>


.content {
  height: calc(100% - 60px);
}
</style>
